package com.hsnn.medstgmini.base.dict.model;


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * 包装单位维护记录实体类
 * @author lidongfei@njhsnn
 * 2015年6月9日
 */
@Entity
@Table(name = "dic_drugname_log")
public class DicDrugnameLog implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = -4098818532736718405L;
	private String logId;//通用名日志id
	private String drugnameCode;//通用名编码
	private String drugName;//通用名名称
	private String status;//状态 0 停用 1启用
	private String updDatetime;//更新时间
	private String updUser;//更新人
	private String sortId;//排序id

	// Constructors

	/** default constructor */
	public DicDrugnameLog() {
	}

	/** minimal constructor */
	public DicDrugnameLog( String drugnameCode,
			String drugName) {
		this.drugnameCode = drugnameCode;
		this.drugName = drugName;
	}

	/** full constructor */
	public DicDrugnameLog( String drugnameCode,
			String drugName, String status, String updDatetime,
			String updUser, String sortId) {
		this.drugnameCode = drugnameCode;
		this.drugName = drugName;
		this.status = status;
		this.updDatetime = updDatetime;
		this.updUser = updUser;
		this.sortId = sortId;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "uuid")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "log_id", unique = true, nullable = false, length = 36)
	public String getLogId() {
		return this.logId;
	}

	public void setLogId(String logId) {
		this.logId = logId;
	}

	@Column(name = "drugname_code", nullable = false, length = 10)
	public String getdrugnameCode() {
		return this.drugnameCode;
	}

	public void setDrugnameCode(String drugnameCode) {
		this.drugnameCode = drugnameCode;
	}

	@Column(name = "drug_name", nullable = false, length = 100)
	public String getdrugName() {
		return this.drugName;
	}

	public void setDrugName(String drugName) {
		this.drugName = drugName;
	}

	@Column(name = "status")
	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	@Column(name = "upd_datetime", length = 19)
	public String getUpdDatetime() {
		return this.updDatetime;
	}

	public void setUpdDatetime(String updDatetime) {
		this.updDatetime = updDatetime;
	}

	@Column(name = "upd_user", length = 36)
	public String getUpdUser() {
		return this.updUser;
	}

	public void setUpdUser(String updUser) {
		this.updUser = updUser;
	}

	@Column(name = "sort_id")
	public String getSortId() {
		return this.sortId;
	}

	public void setSortId(String sortId) {
		this.sortId = sortId;
	}

}